import request from '@/utils/request'

export function getList() {
  return request({
    url: 'https://api.vuejs-core.cn/getAd',
    method: 'get',
  })
}

export function SelSwiper(params) {
  return request({
    url: '/SysUser/SelSwiper',
    method: 'get',
    params,
  })
}

export function SetSwiper(data) {
  return request({
    url: '/SysUser/SetSwiper',
    method: 'post',
    data,
  })
}
//查询文章列表
export function SelText(params) {
  return request({
    url: '/SysUser/SelText',
    method: 'get',
    params,
  })
}
//删除文章列表
export function DelText(params) {
  return request({
    url: '/SysUser/DelText',
    method: 'get',
    params,
  })
}
//设置文章列表
export function SetText(data) {
  return request({
    url: '/SysUser/SetText',
    method: 'post',
    data,
  })
}
//添加文章列表
export function AddText(data) {
  return request({
    url: '/SysUser/AddText',
    method: 'post',
    data,
  })
}
